package com.WebMentorPro.system.mapper;

import com.WebMentorPro.system.model.dto.bookBorrow.BorrowQueryRequest;
import com.WebMentorPro.system.model.dto.expertReading.ExpertQueryRequest;
import com.WebMentorPro.system.model.entity.BookBorrow;
import com.WebMentorPro.system.model.vo.BookBorrowVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author bianxiaoyao
* @description 针对表【book_borrow(书籍借阅表)】的数据库操作Mapper
* @createDate 2024-11-24 11:24:42
* @Entity generator.domain.BookBorrow
*/
public interface BookBorrowMapper extends BaseMapper<BookBorrow> {

    List<BookBorrowVO> getQuery(@Param("pageParam") Page<BookBorrowVO> pageParam,
                                @Param("borrowQueryRequest") BorrowQueryRequest borrowQueryRequest);

    List<BookBorrowVO> getQueryByStudent(@Param("pageParam") Page<BookBorrowVO> pageParam,
                                           @Param("borrowQueryRequest") BorrowQueryRequest borrowQueryRequest,
                                           @Param("userId") Long userId);

    List<BookBorrowVO> getQueryByMyStudent(Page<BookBorrowVO> pageParam, BorrowQueryRequest borrowQueryRequest, Long teacherId);
}




